<template>
	<div>
		<div class="header">
	        <em>影院</em>
	        <span class="go-back"><a href="home.html"></a></span>
	    </div>
	    <div class="m-title">
	        <h3>{{$route.query.name}}<em>{{$route.query.rate}}</em></h3>
	    </div>
	    <div class="container">
			<div class="scene-item" v-for="item in getlist">
				<span class="c-time">{{item.Time.substring(0,5)}}</span>
				<span class="c-type">{{item.RoomType}}<em>{{item.Room}}</em></span>
				<span class="c-price">￥{{item.Price}}</span>
				<span class="c-btn"><router-link :to="{path:'/seat',query:{timeID:item.TimeID,name:$route.query.name}}">选择购票</router-link></span>
			</div>
	   </div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				getlist:[]
			}
		},
		mounted(){
			this.$http.get("http://film.glkjjt.com/api/Movie/Shows?MovieID="+this.$route.query.id)
			.then(res=>{
				console.log(res.data)
				this.getlist=res.data
			})
			.catch(err=>{
				console.log(err)
			})
		},
		methods:{
			
		}
	}
</script>

<style>
</style>